package com.linln.admin.sync.repository;

import com.linln.admin.sync.domain.NacosDefaultConf;
import com.linln.common.config.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * @author taofucheng
 * @date 2021/11/26
 */
public interface NacosDefaultConfRepository extends BaseRepository<NacosDefaultConf, Long> {
    @Query("from #{#entityName} where env_type=:env ")
    NacosDefaultConf findFirstByEnv_type( @Param("env") String env);
}